package top.superflow.flow.common

import top.superflow.core.metadata.MetadataAble
import top.superflow.flow.runtime.processprovider.{OriginalProcessProxy, RuntimeProcessProvider}
import top.superflow.flow.runtime.resource.RuntimeResource

class StaticClassProcessProvider extends RuntimeProcessProvider {


  override def provide(metadata: MetadataAble): OriginalProcessProxy = {
    val processProxy = getOriginalProcessProxy

    processProxy.setMetadata(metadata.getMetadata)

    processProxy
  }

  private def getOriginalProcessProxy: OriginalProcessProxy ={

    new StaticClassOriginalProcessProxy
  }

  override def contain(processKey: String): Boolean = ???

  override def getResource(resourceKey: String): RuntimeResource = ???
}
